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•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Underrated reasons to be thankful V

https://dynomight.net/thanks-5/
1•numeri•1m ago•0 comments

The engineer–manager pendulum is breaking

https://www.modernleader.is/p/pendulum-revisited
1•gpi•6m ago•0 comments

Bending Emacs – Episode 6: Overlays

https://xenodium.com/bending-emacs-episode-6-overlays
1•todsacerdoti•6m ago•0 comments

LinkedIn is loud, and corporate is hell

https://ramones.dev/posts/linkedin-is-loud/
2•austinallegro•8m ago•1 comments

VybeCam – find the perfect song that matches your vibe – like Shazam in reverse

https://apps.apple.com/app/apple-store/id6749338267?pt=118080429&ct=HackerNews&mt=8
1•donemanuel•11m ago•0 comments

Hybrid dark-pool DEX architecture on Solana

1•DarkVeil•12m ago•0 comments

Amazon: Who pays the price? – DW Documentary [video]

https://www.youtube.com/watch?v=6r3x2t872Pc
1•eternalreturn•13m ago•0 comments

Stop Hacklore – An Open Letter

https://www.hacklore.org/letter
1•birdculture•15m ago•0 comments

Predicting eukaryotic gene models combining deep learning&hidden Markov model

https://www.nature.com/articles/s41592-025-02939-1
1•bookofjoe•19m ago•0 comments

GameShell: Game to learn (or teach) how to use standard commands in a Unix shell

https://github.com/phyver/GameShell
1•sebg•22m ago•0 comments

The AI boom is based on a fundamental mistake

https://www.theverge.com/ai-artificial-intelligence/827820/large-language-models-ai-intelligence-...
1•Anon84•27m ago•0 comments

Bomb-proof your website with mirroring

https://brandonrohrer.com/hosting7.html
2•sebg•28m ago•0 comments

Nucleus Genomics founder Kian Sadeghi caught lying on TBPN

https://twitter.com/cremieuxrecueil/status/1993460627126284383
1•totalhealthopt•28m ago•0 comments

Generalized Worley Noise

https://ianthehenry.com/posts/generalized-worley-noise/
1•leephillips•32m ago•0 comments

Puzzle Financial CEO spends Thanksgiving hiding his federal ban on Wikipedia

https://patrickstoica.com/puzzle-statement/#wikipedia-edit-war-sasha-orloff-personally-removes-fr...
2•pstoica•32m ago•1 comments

DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning [pdf]

https://github.com/deepseek-ai/DeepSeek-Math-V2/blob/main/DeepSeekMath_V2.pdf
13•fspeech•35m ago•2 comments

Enveloped vs. Non-Enveloped Virus(2022)

https://virologyresearchservices.com/2022/05/22/enveloped-vs-non-enveloped-viruses/
1•rolph•36m ago•0 comments

Russia's only pad for crew launches suffers major damage

https://www.russianspaceweb.com/baikonur_r7_31.html#cabin
3•zhan_eg•37m ago•1 comments

Show HN: CLI Figma .fig –> .json for LLM

https://github.com/kreako/fig2json
1•kreako•38m ago•0 comments

Not send play slip on a digital safe

1•Roax•39m ago•0 comments

GitLab Interface Redesign

https://docs.gitlab.com/user/interface_redesign/
3•maxloh•42m ago•0 comments

I accidentally stumbled upon one of the Catholic Church's darkest secrets

https://garethgore.substack.com/p/how-i-accidentally-stumbled-upon
3•Anon84•42m ago•0 comments

SEC probes Jefferies over First Brands disclosures

https://www.ft.com/content/86d90ce5-5800-4514-a757-f46a38aa521d
1•zerosizedweasle•47m ago•0 comments

Apple TV Pulls 'The Hunt' Show over Plagiarism Claims

https://www.macrumors.com/2025/11/27/apple-tv-show-hunt-pulled-plagiarism-claims/
2•kotaKat•47m ago•0 comments

.NET 10 and NuGet Audit: Finding Root Packages for Transitive Vulnerabilities

https://www.appsoftware.com/blog/net-10-and-nuget-audit-identifying-root-packages-for-vulnerable-...
1•appsoftware•47m ago•0 comments

Why have so many people stopped posting on social media?

https://www.rte.ie/brainstorm/2025/1127/1546045-why-have-we-stopped-posting-on-social-media-psych...
1•austinallegro•48m ago•3 comments

Unprecedented levels of forever chemicals found in dolphins and whales

https://phys.org/news/2025-11-unprecedented-chemicals-dolphins-whales.html
2•measurablefunc•49m ago•0 comments

Idempotency Keys

https://www.morling.dev/blog/on-idempotency-keys/
2•redbell•51m ago•0 comments

A graph is worth 1000 tables

https://crimede-coder.com/blogposts/2025/GraphsBetterThanTables
2•apwheele•52m ago•0 comments

What does it mean to understand language?

https://arxiv.org/abs/2511.19757
1•sebg•53m ago•0 comments