[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>he uses a functional language without pattern matching
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 17
Thread images: 2
File: 1463426821535.gif (3 MB, 480x360) Image search: [Google]
1463426821535.gif
3 MB, 480x360
>he uses a functional language without pattern matching

What's the point?
>>
Functional languages without pattern matching exist?
>>
>>54741663
LISP
>>
>>54741673
Does anyone use that anymore though?
>>
File: 1376695528925.jpg (3 MB, 3264x2448) Image search: [Google]
1376695528925.jpg
3 MB, 3264x2448
>>54741756
Yes.
>>54741631
Well, patterns are powerful, and as powerful things go you can shoot yourself in the foot with them. It's like Fortran77 versus modern Fortran/C; sometimes you just don't *want* a powerful language
>>
>>54741631
>Not writing your own pattern matching logarithm in Hitachi RISC
Plebs all of you
>>
>>54741673
Racket has pattern matching
>>
>>54741631
Pattern matching works best with static typing.
>>
>>54741673
Clojure is a Lisp; it has pattern matching.
>>
>>54742830
>you
Speak for yourself, clumsu.
>>
>>54743132
I meant you in the rhetorical, not the literal way.
I forgot that "one" is more common in english for that purpose.
>>
>>54743082
No it doesn't

>>54742950
Racket doesn't even have types, it might as well be a switch statement
>>
>>54743333
Typed Racket my dude
https://docs.racket-lang.org/ts-guide/
>>
>>54743311
#wasnthim
Your usage is consistent with modern standards. Using 'one' makes one sound like a toff.

What I meant was that I disagree with protecting programmers from themselves. Protecting users from programmers is a better goal. Processes should be more like sandboxes with their own storage area, within which programmers should have free reign.
>>
>>54743333
racket has types but it's not strongly typed
>>
>>54743603
(Disclaimer; I come from an environment where there is no such thing as a "user". All code we write is for scientific purposes only and all users are by construction also developers of said code. This is a very special usecase I admit.)
That's the thing, I don't see it as a matter of protecting anyone. I see it as a matter of communication; by using a language that is not as powerful you enforce verbosity. You enforce literal and explicit over contextual and implicit, which sets the tone for the project. It's just another formalism you agree upon.
>>
>>54743333
It has destructuring and the new spec feature is very comfy.
Thread replies: 17
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.