Amazing find! I’ve been using Pairs for a while already and had wished for better integration with Dictionaries.
— Thomas Tempelmann · Jun 10, 11:09 AM · #
Pairs came about as the precursor to pass-by-name functionality. So you could do something along the lines of:
DrawString( str:“The string to draw”, x:12, y:14 )
As for the integration with dictionary, I think that came the release after Pairs came out — it wasn’t stealth so much as under-trumpeted.
— Aaron Ballman · Jun 10, 06:27 PM · #
Well, isn’t that a coincidence? I got onto this in the course of rewriting my TemplateString class to use just this syntax to simulate named parameters.
— charles · Jun 10, 07:43 PM · #
Commenting is closed for this article.
Amazing find! I’ve been using Pairs for a while already and had wished for better integration with Dictionaries.
— Thomas Tempelmann · Jun 10, 11:09 AM · #
Pairs came about as the precursor to pass-by-name functionality. So you could do something along the lines of:
DrawString( str:“The string to draw”, x:12, y:14 )
As for the integration with dictionary, I think that came the release after Pairs came out — it wasn’t stealth so much as under-trumpeted.
— Aaron Ballman · Jun 10, 06:27 PM · #
Well, isn’t that a coincidence? I got onto this in the course of rewriting my TemplateString class to use just this syntax to simulate named parameters.
— charles · Jun 10, 07:43 PM · #