frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•11mo ago
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.

...Or maybe we should subscribe to the church of `df`, haha.

Comments

sitkack•11mo ago
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.
butlersean•11mo ago
def means define, could be used to define all kinds of things

fn isnt a legitimate short form of function

fun doesnt work because of the amusement factor

func is the only alternative we have left

sitkack•11mo ago
How about unicode or emojis?

These don't have the full fidelity as hn scrubs emojis

add = (a, b) -> a + b

a, b ⟹ a + b

λ add(a, b): ↪ a + b

johncoltrane•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Don't fly if you can help it

https://michaelbluejay.com/airfare/dontfly.html
1•cxr•1m ago•0 comments

The Rise of Emotional Surveillance

https://www.theatlantic.com/culture/2026/05/worker-surveillance-emotion-ai/687029/
1•eloisius•6m ago•0 comments

Show HN: ReflowPDF – wrote a layout engine because every PDF library failed

https://reflowpdf.com
1•exsol•8m ago•0 comments

Think pop music is basic? Even classical and jazz are getting less complex

https://connectsci.au/news/news-parent/9259/Think-pop-music-is-basic-Even-classical-and-jazz
1•gmays•9m ago•0 comments

Shoppers falsely identified by facial recognition system

https://www.theguardian.com/technology/2026/may/03/guilty-until-proven-innocent-shoppers-falsely-...
1•kayfox•9m ago•0 comments

GameStop Proposes to Acquire eBay at $125.00 per Share

https://investor.gamestop.com/news-releases/news-details/2026/GameStop-Proposes-to-Acquire-eBay-a...
1•tech234a•10m ago•0 comments

PicoServer: A glue library embedding web server for .NET, no IIS, no Kestrel

https://www.nuget.org/packages/PicoServer
1•myhackernew•10m ago•0 comments

PostgreSQL databases are boring on purpose

https://stormatics.tech/blogs/the-best-postgresql-databases-are-boring-on-purpose
2•pgdatabase•25m ago•0 comments

Unauthorized macOS port claiming Don Ho as an author?

https://github.com/notepad-plus-plus/notepad-plus-plus/issues/17982
4•jethronethro•25m ago•0 comments

Bluchan.org – Anonymous Free Speech Forum

https://www.bluchan.org
1•jjhbhjbj•27m ago•1 comments

Diatom

https://en.wikipedia.org/wiki/Diatom
1•lucaslazarus•28m ago•0 comments

Trump: U.S. Navy will "guide" ships out of Strait of Hormuz from Monday

https://www.axios.com/2026/05/03/trump-us-navy-iran-ships-strait-hormuz
1•cosmicgadget•29m ago•0 comments

UIGen – Why runtime rendering is better than codegen (low code)

https://uigen-docs.vercel.app/blog/runtime-rendering-vs-code-generation
1•ombedzi•30m ago•0 comments

Tesla is facing up to $14.5B in lawsuits and it's only getting worse

https://electrek.co/2026/04/16/tesla-facing-up-to-14-billion-lawsuits-deep-dive/
5•1vuio0pswjnm7•34m ago•0 comments

Stohr

https://stohr.io
1•wesscope•37m ago•1 comments

Amazon takes $45M hit, abandons planned West Auckland data centre

https://www.rnz.co.nz/news/business/594164/amazon-takes-45m-hit-abandons-planned-west-auckland-da...
3•billybuckwheat•37m ago•0 comments

The new grads are not okay

https://blog.evan.hu/p/the-new-grads-are-not-okay
1•evanhu_•41m ago•2 comments

Request for Testers: Personal Planning App

https://www.threads.com/@alaaalatif/post/DX5VxSbmSgE
1•JustCallMeAl•56m ago•1 comments

Russian Soldiers Surrendered for Free McDonald's

https://www.youtube.com/watch?v=MktJb7dFv9E
2•doener•1h ago•0 comments

Don't Sue Me Nintendo

https://latexcrimes.leaflet.pub/3mky5fjz67k2p
1•Kye•1h ago•0 comments

Do AI Detectors Work Well Enough to Trust?

https://www.chicagobooth.edu/review/do-ai-detectors-work-well-enough-trust
2•alex000kim•1h ago•0 comments

Know thyself: LLM schema for personal memory

https://github.com/parrik/know-thyself
2•parrik•1h ago•0 comments

Valletta: A City in History [pdf]

https://www.um.edu.mt/library/oar/bitstream/123456789/15640/1/Valletta%20-%20A%20city%20in%20hist...
1•andsoitis•1h ago•0 comments

Daily Dots

https://dailydots.dev/
1•oliver-zink•1h ago•0 comments

Should You Be Able to Experiment on Your Own Cancer? (2024)

https://unchartedterritories.tomaspueyo.com/p/should-you-be-able-to-experiment
1•Ariarule•1h ago•0 comments

The Science of French Fries

https://foodcrumbles.com/science-making-perfect-fries/
1•lagniappe•1h ago•0 comments

Fake Notepad++ for Mac

https://notepad-plus-plus.org/news/npp-trademark-infringement/
4•birdculture•1h ago•1 comments

Said it couldn't see her eyes. The car then automatically disabled

https://twitter.com/WallStreetApes/status/2051079891316248860
6•bilsbie•1h ago•2 comments

(not) using "cryptographic hashes" for hash table keys

https://runxiyu.org/comp/ch4ht/
1•runxiyu•1h ago•0 comments

Show HN: Using Tailscale with Apple's containerization stack

https://github.com/highpost/tailscale-macos-container
2•highpost•1h ago•0 comments