logoalt Hacker News

lrasinenyesterday at 6:49 AM4 repliesview on HN

One of these years I'm going to make a Finnish programming language that enforces the correct case in arguments. And I don't mean silly arguments like camelCase vs kebab-case, I mean grammar.

Some examples to illustrate:

  tiedosto on "foo.txt" avattuna
  tulostin on PRN1
  kirjoita(tiedostoon, "a")
  kirjoita(tulostimelle, "b")
Job security for DECADES.

Replies

onreyesterday at 9:04 AM

This is equal parts brilliant and demented. Thank you.

  syöte olkoon vakiosyöte

  yritä
    tee syötteen kullekin alkiolle:
      käsittele(alkio)
  paitsi poikkeustilanteessa liukulukuylivuoto:
    kirjoita(virhetulosteeseen, "liukulukuylivuoto")
  muutoin:
    kirjoita(virhetulosteeseen, "odottamaton poikkeus")
show 1 reply
mhdyesterday at 10:10 AM

Like a more devious Lingua::Romana::Perligata?

https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...

show 1 reply
kingofmenyesterday at 8:45 PM

And call it AivotP*rkele?

marmakoideyesterday at 11:21 AM

And with all the maths in balanced ternary