Forum Replies Created
-
AuthorPosts
-
At least in c++ you get the enclosing ‘{‘ ‘}’ to delimit the lambda scope from the expression scope
isn’t that what Lambda() and End are for?
The problem with bool->string conversion is that since string->bool is true if string is non-empty (which IMO is the right way to do it), then for Bool(String(Bool)) to produce the correct result (ie: should give same value as the original bool) bool->string needs to produce “” for false.
we don’t expect the original start value when going from a double to int and back. I think it’s a mistake to compare them to primitive number types. It’s pretty standard for string conversion of bool to produce ‘true’ / ‘false’.
Yay!
for the extensions, not the problemshere’s another idea, how about dot notation for maps? or even better a real non typed data object…
if you do indent you should have the amount of spacing as an option or just keep it small. otherwise stuff like that tends to eat up so much screen real estate for just small gains I think.
you should include the option to show all invisibles… especially
newline (sometimes shown with the paragraph symbol, or an 90 degree down arrow)space (usually shown with the centered dot symbol)
and of course tab… IMO, the symbol you choose here is a little bit too overbearing. often this is shown with a continuous thin up/down line without the perpendicular arm.
sure!
this is nice only sometimes as pointed out. it would be nice to keep this behavior but only if it can be explicit. maybe something along the lines of the null conditional operator on the roadmap…
something like
[removed]
[edit]
Actually
a??.Hello()although in Marks code example the class itself is checking so using a null conditional would amount to less code being executable, correct? So the only use case is if we never check for null anywhere right? and if thats the case, what is the use case?
that pdf is quite interesting… especially the part that dynamic (non anonymous) methods are generally 50% faster than static. too bad they don’t explain or speculate why that is.
now this kind of news is pretty awesome! especially if we can show people still on bmx that MX2 is much faster and smoother.
I wasn’t thinking real tuples, just thinking about faking them… I was under the impression that since the compiler is mostly a translator(?), crazy semantics become far more doable.
I was thinking was under the hood the compiler would just create out parameters to make this all work… just throwing stuff out there, no worries.
but yeah, they are just a cool convenience thing to make code shorter and more readable.
I’ve found the best way to keep code simple is to remove most of it.
-
AuthorPosts