Lazy question (I have not RTFMed at all). One can ...
# cfml-general
a
Lazy question (I have not RTFMed at all). One can create an ordered struct via literal:
[a=1, b=2, c=3]
. How does one create an empty ordered struct, using literal syntax? ie: the equiv of
st = structNew("Ordered")
m
It's been a while, but I think I have searched on how to do this, without success. But I don't think I realized you could explicitly create an ordered struct via literal; I thought that just created a regular, unordered struct. Edit: I just noticed the square brackets for ordered struct via literal. Good to know!
m
st = [:];
1
3
a
Nice one!
Thanks Matt!
1
ooooops
If it was me answering this question, I'd've "probably" admonished myself.
😆 2
m
to be fair, you did identify you hadn't read the manual. so you sorta pre-admonished 😄
😂 1
m
The best part here is that there's nothing anyone could post that would be more admonishing than Adam admonishing himself. I like using that word. Admonishing. hehe.
m
"If we were your parents, we'd punish ourselves."
a
"Adamonishing", perhaps?
😆 4
"If we were your parents, we'd punish ourselves."
My parents are dead. Join the dots.
Given my rep around the place, perhaps even "Adamoanishing"
m
All good words. Adamoanishite?
a
WE HAVE A WHINER
I MEAN WINNER
Or do I?
r
“Adamoanishite”: Sounds like something vaguely semi-precious until one starts to think about what they just said…
🤣 1
a
Ooh I could almost use "Sounds like something vaguely semi-precious until one starts to think about what they just said…" for my blog strapline.
😆 2
(although I should perhaps write some more content before worrying about jokey quotes)
m
y'all are killin me over here
has the shortcut syntax documented