|
I think the key quote is:quote:Please, stop converting what seemed a true dream (being able to perform relevant modifications in CoreCLR & CoreFX) in meaningless conversations which I don't want to have. dude wants to be able to say that he contributed to the clr and just doesn't understand why the mean bullies are stopping him
|
# ? Dec 11, 2015 23:19 |
|
|
# ? May 8, 2024 23:31 |
|
hmm, actually reading the documentation closely, it seems like it doesn't guarantee that "1,,,2" would be valid. "1,2" = 12 is definitely guaranteed behavior though.
|
# ? Dec 11, 2015 23:21 |
|
Plorkyeran posted:dude wants to be able to say that he contributed to the clr and just doesn't understand why the mean bullies are stopping him "!data"
|
# ? Dec 11, 2015 23:54 |
|
LeftistMuslimObama posted:Yeah. It's the right thing to do until it's not, which is why there should be a separate function for strict behavior. If I had his use case, I'd probably just write my own wrapper around tryParse that does the grouping checking (probably using a regex?) and then call tryParse itself. I'm curious what the case would be where it's not. I've been thinking of examples but can't come up with one. I think that requiring someone to write a wrapper function if there's a more strict parsing requirement exists makes the most sense.
|
# ? Dec 12, 2015 01:47 |
|
Ochowie posted:I'm curious what the case would be where it's not. I've been thinking of examples but can't come up with one. I think that requiring someone to write a wrapper function if there's a more strict parsing requirement exists makes the most sense. Dunno, I assume either a weird locale/culture thing.
|
# ? Dec 12, 2015 02:25 |
|
tef posted:i know a golang dev who lurks here too. is he a glutton for punishment?
|
# ? Dec 12, 2015 02:58 |
|
the talent deficit posted:i'm using vscode with the elm plugin, elm-reactor and manually refreshing firefox cool, i like it too
|
# ? Dec 12, 2015 03:15 |
|
As a Millennial I posted:is this the thread where i post this https://github.com/dotnet/coreclr/issues/2285 Ey, stupid, I can laugh at you (at your ignorance and at your lack of capability to understand even the simplest idea) and let you think that you have everything under control. But, piece of poo poo, don't ever dare to insult me when I am present.
|
# ? Dec 12, 2015 03:57 |
|
I actually thought it would be about how , was the decimal separator in some languages.
|
# ? Dec 12, 2015 04:06 |
|
Ochowie posted:I think he has a better argument with the fact that "1,,,,,," parses to 1 but honestly I fail to see how ignoring the grouping delimiter isn't always the sane thing to do. One question I had reading that thread, how does .NET currently treat locale-specific grouping delimiters (e.g. In many countries '.' is the group delimiter). those countries are retarded so nobody cares about them
|
# ? Dec 12, 2015 05:14 |
|
Suspicious Dish posted:I actually thought it would be about how if only
|
# ? Dec 12, 2015 06:19 |
|
if you can already pass a locale parameter to tryParse, the sane thing to do would be to add a rw boolean property to locales that indicate whether they should be strict about thousands delimiters, then update the original tryParse to respect that then insane developers who want to deal with users who type in 1,,,5 can just set locale.strictThousandsDelimiters = True and everyone else can keep going as they have imo
|
# ? Dec 12, 2015 14:21 |
|
it is a parser not a validator
|
# ? Dec 12, 2015 15:40 |
|
antlr parses code and gives you an ast but it doesn't tell you if your ast is poo poo or not
|
# ? Dec 12, 2015 15:41 |
|
Bloody posted:antlr parses code and gives you an ast but it doesn't tell you if your ast is poo poo or not it is
|
# ? Dec 12, 2015 17:42 |
|
Bloody posted:it is a parser not a validator parsing includes at least partial validation already im not saying the dude is right, im just offering a solution that would be the least insensible if you really wanted to do such a dumb thing
|
# ? Dec 12, 2015 19:51 |
|
What gets me about this is that if I think about handling numerical input that could have the grouping separator, the first thing I would look to do is strip those out and see if I had a valid number. That seems to be exactly what TryParse does, but instead this guy wants to it handle every bizarre edge case that users could come up with.
|
# ? Dec 12, 2015 20:27 |
|
how does this thread manage to just spontaneously fishmech itself
|
# ? Dec 12, 2015 20:32 |
|
one cannot fishmech, one can only be fishmeched
|
# ? Dec 12, 2015 20:38 |
|
tef posted:python's had two goons at the very least, i know a golang dev who lurks here too. yospos gets everywhere i guess lol must be tough for that guy
|
# ? Dec 18, 2015 04:31 |
|
Volte posted:Next we're going to be complaining about HTML parsers that accept malformed HTML. we should tell that guy about those and see just how bad his 'tism relaly is.
|
# ? Dec 19, 2015 00:07 |
|
Sauer posted:we should tell that guy about those and see just how bad his 'tism relaly is. rip xhtml
|
# ? Dec 19, 2015 00:13 |
|
me about the fate of xhtml -->
|
# ? Dec 19, 2015 19:44 |
|
hi someone point me to a deece learn you a scala thing thanks in advance
|
# ? Dec 20, 2015 06:16 |
|
Bloody posted:hi someone point me to a deece learn you a scala thing thanks in advance scala is like c++ because it has tons of novel, sometimes conflicting features and people generally pick a subset of them to avoid going insane. i've read through a good bit of scala for the impatient and it gives a "learn you a haskell" paced introduction.
|
# ? Dec 20, 2015 09:14 |
|
if you ever type the word 'implicit' you should have a good think about your life
|
# ? Dec 20, 2015 10:42 |
|
Bloody posted:hi someone point me to a deece learn you a scala thing thanks in advance odersky's coursera course is useful
|
# ? Dec 20, 2015 11:05 |
|
FamDav posted:scala is like c++ because it has tons of novel, sometimes conflicting features and people generally pick a subset of them to avoid going insane. Yeah true to be more specific I'm interested in functional scala
|
# ? Dec 20, 2015 16:16 |
|
gonadic io posted:if you ever type the word 'implicit' you should have a good think about your life i remember starting on this project and looking at breeze since we use it. scala is not worth it.
|
# ? Dec 20, 2015 19:09 |
|
ya, i don't understand why you'd do a new thing in scala. pick clojure or frege depending on how you feel about static typing
|
# ? Dec 20, 2015 19:17 |
|
Bloody posted:Yeah true to be more specific I'm interested in functional scala if you're just doing this for personal development and not because you need it for work learn f#, haskell, elm or clojure. scala is a miserable experience
|
# ? Dec 20, 2015 19:22 |
|
gonadic io posted:if you ever type the word 'implicit' you should have a good think about your life this times about a billion
|
# ? Dec 20, 2015 19:23 |
|
"yes let's magically populate function parameters based on context. this is sane and never confusing." -a scala
|
# ? Dec 20, 2015 19:24 |
|
Brain Candy posted:ya, i don't understand why you'd do a new thing in scala. pick clojure or frege depending on how you feel about static typing scala is going to persist in ML so long as spark is a thing, though with dataframes not incurring a real performance penalty in python i could see scala being an implementation detail. frege is a good idea and somebody competent should do it. clojure is the best out of the three but is missing good, consistent static typing. turns out that what you really wanted in the first place is java 8 :shaggar:
|
# ? Dec 20, 2015 19:25 |
|
FamDav posted:clojure is the best out of the three but is missing good, consistent static typing. rich hickey claims this is feature not a bug and i'm beginning to believe him i get the case for optional typing because hey sometimes you have invariants that you want to preserve. fine and good. but every nanosecond spent translating my Butt type to your Butt type is a nanosecond wasted. i like compile time errors, but i don't like the architecture they direct you towards, where you have to design all your nouns up front
|
# ? Dec 20, 2015 19:46 |
|
imo, Conway's law effects how static typing works for you. if you can roll with a big monothic static typing is great but if you are gluing smaller things together it turns into busy work
|
# ? Dec 20, 2015 19:55 |
|
working with erlang a bit has certainly made me more open to the idea that complex mutable data is the real problem, not type safety
|
# ? Dec 20, 2015 19:58 |
|
complex mutable data is a problem in your application, but lack of type safety is a huge problem in the downstream applications consuming your code
|
# ? Dec 20, 2015 20:01 |
|
I need kind of tooling to tell me what kind of thing i have and help me reliably understand whether I'm writing valid code or not and static typing makes that a lot easier to accomplish I guess a simple, flexible-ish type checker like TypeScript manages to accomplish a lot of this too
|
# ? Dec 20, 2015 20:03 |
|
|
# ? May 8, 2024 23:31 |
|
what if we... had complex mutable types?
|
# ? Dec 20, 2015 20:04 |