Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nv-vn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
66 ms
·
601.
▲
by
nv-vn
11y ago
Most of these features were not present in Python until later (mentioned in the article: "In 2001, Python added statically nested scopes, which allow lambda functions to capture variables defined in enclosing functions"). And if w
602.
▲
by
nv-vn
11y ago
It doesn't have "true tuples" but you can do multiple returns in a tuple-like way and there is syntax for unpacking it. While a pair can't be stored in a single variable, you can just manually unpack and repack them for
603.
▲
by
nv-vn
11y ago
It has tuples, local type inference, for loops on ranges, and anonymous functions/lambdas (which act as closures/"capture" scope). Hardly "almost none of these features".
604.
▲
by
nv-vn
11y ago
For the record, I don't think that the Haskell community is particularly bad. It's just something that I've heard plenty of times from people who have been exposed to the (tiny) bad parts of this community before learning the
605.
▲
by
nv-vn
11y ago
Haven't had the chance to meet him ever, but watching his talks or hearing about him from others, it seems like he really breaks the Haskell/functional programmer stereotypes of being a pretentious asshole or being unwelcoming to
606.
▲
by
nv-vn
11y ago
That's not an analogy, that's trying to directly apply the sport to another device. That would be like saying an analogy to soccer is kicking basketballs into hoops. The most natural thing to do with a car is to drive it and the m
607.
▲
by
nv-vn
11y ago
None of these ideas seem outright specific to Python and I don't think it makes sense to attribute all these changes to Python influence. C# and D, for example, have had most of these features for a few years. One could just as easily
608.
▲
by
nv-vn
11y ago
Having the get() method makes the entire purpose of Optional useless. All it does is make your null-checking code even more verbose. If you need to extract the value, the orElse method should be suitable on all cases. Deprecating get() shou
609.
▲
by
nv-vn
11y ago
Awesome. This reminds me of the recent changes to the OCaml compiler (flambda). If it's anything similar, can't wait for the performance improvements from this (which can hopefully continue bringing Rust up to C speed).
610.
▲
by
nv-vn
11y ago
Yep, going into the list it was the first xkcd link I saw and I immediately knew what it was before even seeing the number.
611.
▲
by
nv-vn
11y ago
At times I like to feel like 1984 didn't come true ever, and that our limited surveillence, in the grand scheme of things, is almost tolerable in comparison. But every time I see somethijg like this I change my mind. Everything here is
612.
▲
by
nv-vn
11y ago
Thanks for reaching out to answer my questions. I was really confused visiting the website after I read the article because barely anything matched up with the descriptions they gave.
613.
▲
by
nv-vn
11y ago
Definitely. One of my favorite IRC channels is pretty much exactly this. Everyone disagrees about what their favorite technology is or what their political views are on said channel, but arguments are encouraged and often last hours at a ti
614.
▲
by
nv-vn
11y ago
Agreed. I really found it annoying that Github decided to include -1 on PRs and issues because it encourages people to just pick the cheapest cost option and not express their argument against a change, which is probably one of the best pos
615.
▲
by
nv-vn
11y ago
Agreed, the karma barrier does help a decent amount. But even on HackerNews I see the same "downvoting mob mentality" occasionally where all comments expressing certain views or disagreeing with comments of more popular users are
616.
▲
by
nv-vn
11y ago
I think the best thing you can do is explain why they are factually wrong in that case and try to teach them/correct them. Otherwise, they just start to dislike the community and don't gain any new knowledge.
617.
▲
by
nv-vn
11y ago
The article doesn't really explain how anything is actually going to work in practice. By 'warmier and fuzzier' do we mean it's targeted at kids (as the graphics might suggest)? In that case, will they be moderating prof
618.
▲
by
nv-vn
11y ago
How would that show any connection to dynamic typing? I imagine that the GP is coming from the perspective of C based on the fact that they're criticizing the use of garbage collection.
619.
▲
by
nv-vn
11y ago
There were a few big controversies on Twitter and Reddit that I can recall. In one instance in particular, someone called out some Haskell users trying to make Haskell look better by publishing code examples of common algorithms that "
620.
▲
by
nv-vn
11y ago
To expand on this, even expert programmers have a harder time adjusting to the mindset of a lot of modern programming languages, which is one of the reasons a lot of software written by experienced programmers can still be riddled with bugs
621.
▲
by
nv-vn
11y ago
Historically, mostly performance. Outside of academia, performance becomes an important factor in most programs. In the past, both slower computers and fewer optimizations made implementing the abstractions of functional programming ridicul
622.
▲
by
nv-vn
11y ago
It can still help save you time where you would normally use an exception. If I only want to continue the current operation if no exception is thrown, I can use a function I've written without any exception handling by using a functor:
623.
▲
by
nv-vn
11y ago
I can't find the original source, but the system for deciding whether to just show a check box or not was super complicated.Back around a year and a half ago when it was first released, some people on 4chan's technology board (&#x
624.
▲
by
nv-vn
11y ago
I could see that. I find that Haskell specifically is very hard to ease into, whereas a lot of similar languages are much easier. For me, I wasn't comfortable with my Haskell skills until I learned Idris, which is arguably a more diffi
625.
▲
by
nv-vn
11y ago
Yep, same here coming from OCaml. MLs seem a lot more conservative with their standard libraries. Actually, with OCaml there have been a ton of attempts at making the standard library larger (Extlib, Batteries, Containers, Core, etc.) which
626.
▲
by
nv-vn
11y ago
Ibterwsting. Is there a specific reason that Erlang's given so much more time and memory than Elixir?
627.
▲
by
nv-vn
11y ago
If you don't want people to be able to use your work how they wish, don't license it as free software. Or trademark the name if the naming is an issue. Blocking someone from being able to use your code is anti-software-freedom and
628.
▲
by
nv-vn
11y ago
Then just hide their part of the graph?
629.
▲
by
nv-vn
11y ago
A bunch of languages are moving towards integrating IDE tools into the compiler with some kind of API. This allows for on-the-fly type checking, better syntax highlighting, better autocompletion, automatically generating bits of boilerplate
630.
▲
by
nv-vn
11y ago
I disagree. Version control very much impacts the process of writing code. For example, if I'm going to make a major change to a solo project but I don't know what angle to approach it from, I'll create a branch to test one a
More ›