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

Ask HN: AMA – AI Startups Assessor and Strategy Consultant

1•duverse•1m ago•0 comments

Jujutsu v0.36.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.36.0
1•birdculture•2m ago•0 comments

AI detection tools cannot prove that text is AI-generated

https://www.seangoedecke.com/ai-detection/
1•Twixes•6m ago•0 comments

Show HN: Know your employees skills gap and boost retention rate

https://semis.reispar.com
1•tolulade_•6m ago•0 comments

The Gamma Language

https://lair.masot.net/gamma/
1•RossBencina•10m ago•0 comments

Giant humanoid electrical pylons

https://choishine.com/Giants.html
1•yzydserd•15m ago•0 comments

Should CSS Be Constraints?

https://pavpanchekha.com/blog/why-css-bad.html
1•tannhaeuser•19m ago•0 comments

Why Does A.I. Write Like That?

https://www.nytimes.com/2025/12/03/magazine/chatbot-writing-style.html
2•carabiner•21m ago•0 comments

Instagram Profit Margin Calculator Online Free Tool

https://metaconvert.blogspot.com/2025/10/instagram-profit-margin-calculator.html
2•MetaConvert•28m ago•0 comments

Unix Original Bell Labs v4 Found at University of Utah

https://www.youtube.com/watch?v=IR-f07LN0-Y
1•rasengan0•30m ago•0 comments

Grok 4.20 beats all other AI models in Alpha Arena test

https://www.sammyfans.com/2025/12/05/grok-4-20-beats-all-other-ai-models-in-alpha-arena-test/
1•terryds•32m ago•0 comments

High-Performance DBMSs with io_uring: When and How to use it

https://arxiv.org/abs/2512.04859
1•mfiguiere•35m ago•0 comments

Loopi – Open-Source Visual Browser Automation Platform

https://loopi.dyan.live/
1•0018akhil•36m ago•1 comments

Nano Banana Pro: reasoning-first 4K studio

https://nanobanapro.com
1•AnyVideoAI•44m ago•0 comments

Which protocol do you guys use in NAS shares to Proxmox – NFS or SMB?

https://old.reddit.com/r/Proxmox/comments/1i50jy9/which_protocol_do_you_guys_use_in_nas_shares_to/
2•sipofwater•44m ago•2 comments

Alternate Reality Christmas Gifts

https://medium.com/luminasticity/alternate-reality-christmas-gifts-9d9dd9c81a2b
1•bryanrasmussen•49m ago•0 comments

Show HN: How to play imposter game with impostergame.win

https://impostergame.win/how-to-play
1•tomstig•53m ago•1 comments

Turning everyday observations into investable signals

https://www.prophit.investments/
2•porterh•53m ago•1 comments

UK IVF couples rank embryos based on potential IQ, height and health

https://www.theguardian.com/society/2025/dec/06/uk-ivf-couples-use-legal-loophole-rank-embryos-iq...
2•sorokod•56m ago•0 comments

Maher Arar

https://en.wikipedia.org/wiki/Maher_Arar
4•KnuthIsGod•1h ago•0 comments

Very Important People

https://dirt.fyi/article/2025/11/very-important-people
1•gmays•1h ago•0 comments

Why Theme Parks Keep Getting More Extreme

https://www.theatlantic.com/culture/archive/2025/09/universal-epic-universe-disney-theme-park-att...
2•vinhnx•1h ago•0 comments

Rnj-1: Building Instruments of Intelligence

https://essential.ai/research/rnj-1
1•aratahikaru5•1h ago•0 comments

Pantone Color of the Year 2026

https://www.pantone.com/uk/en/color-of-the-year/2026
1•vinhnx•1h ago•1 comments

Schizophrenia sufferer mistakes smart fridge ad for psychotic episode

https://old.reddit.com/r/LegalAdviceUK/comments/1pc7999/my_schizophrenic_sister_hospitalised_hers...
50•hliyan•1h ago•13 comments

Redfin's 2026 Predictions: Welcome to the Great Housing Reset

https://www.redfin.com/news/housing-market-predictions-2026/
1•toomuchtodo•1h ago•0 comments

St. Nicholas Day: NIS2 Implementation Act Comes into Force in Germany

https://www.heise.de/en/news/On-St-Nicholas-Day-NIS2-Implementation-Act-Comes-into-Force-11104146...
1•doener•1h ago•0 comments

The Hackers Lost. Freezenet Is Back

https://www.freezenet.ca/the-hackers-lost-freezenet-is-back/
1•doener•1h ago•0 comments

Wolfram Compute Services

https://writings.stephenwolfram.com/2025/12/instant-supercompute-launching-wolfram-compute-services/
15•nsoonhui•1h ago•0 comments

Wine 11.0 RC1 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0-rc1
5•neustradamus•1h ago•0 comments