Bug introduced in 10.0 and fixed in 11.0.0
With
Hold[Dataset[Random[]]]

instead of an expected
Hold[Dataset[Random[]]]
Can Dataset expressions be held?
Bug introduced in 10.0 and fixed in 11.0.0
With
Hold[Dataset[Random[]]]

instead of an expected
Hold[Dataset[Random[]]]
Can Dataset expressions be held?
This question is related to:
My proposed solution:
mk : MakeBoxes[(Hold | HoldForm | HoldComplete | HoldPattern)[__], _] :=
Block[{$hldDataset = True, Dataset}, mk] /; ! TrueQ[$hldDataset]
Now:
Hold[Dataset[Random[]]]
Hold[Dataset[Random[]]]
Unlike the case of Graphics I consider the default formatting behavior pathological here.
Datasetupvalues but I wasn't able to customize. – Ronald Monson Jul 15 '15 at 02:17Datasetsas per the holding of all other WL expressions. – Ronald Monson Jul 15 '15 at 02:46Holdstops evaluation, but not typesetting (FormatValues). – ilian Jul 15 '15 at 02:49ls = {}; held = Hold@Dataset[AppendTo[ls, Random[]]]; SetAttributes[f, HoldAll]; f[x_] := x; f@heldproduces three random numbers instead of one random number? in terms of an appearance as a WL command, is there a way of outputtingDataset[{assocs}], verbatim - initial attempts at redefiningDatasetoutput viaFormatas suggested proved unsuccessful and also seems like overkill ... – Ronald Monson Jul 15 '15 at 03:41FullForm[f @ held]is as expected. Would perhaps something likeInactivate[Dataset[{Random[], Random[]}], Random]work? – ilian Jul 15 '15 at 04:13Graphicsfor the reason given by ilian. Has been a feature of Mathematica since V6 at least. – m_goldberg Jul 15 '15 at 04:19Holdbehaviour? – Ronald Monson Jul 15 '15 at 06:56FullFormholds and nearly works but then requires some kind of bootstrapping to rise above e.g.FullForm@HoldForm[Dataset[Random[]]]still shows theHoldForm. Be nice if the default behaviour was changed. Thanks. – Ronald Monson Jul 15 '15 at 07:05