frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Uber Guests Aren't Bound by Uber's TOS–Walker vs. Uber

https://blog.ericgoldman.org/archives/2026/09/uber-guests-arent-bound-by-ubers-tos-walker-v-uber.htm
1•hn_acker•1m ago•0 comments

The Dangers of Musk's Votesafe.org

https://popular.info/p/the-hidden-dangers-of-musks-votesafeorg
2•DeepLogin•1m ago•0 comments

I Made a Bet with Tesla

https://www.youtube.com/watch?v=fo-uubnajWM
1•Betelbuddy•1m ago•0 comments

Using Elm and Rust for one 3D web app

https://yoggimix.bearblog.dev/elm-rust-and-webgl-in-one-app/
1•yoggimix•2m ago•0 comments

Asking the most uncomfortable question in AI

https://www.aiminority.dev/the-ai-danger-public-temperature-check
1•danba340•2m ago•1 comments

Show HN: Picobble – my daily word puzzle game

https://picobble.com/
1•vortegne•3m ago•0 comments

40C3 is moving. Just around the corner. Come and help pack up

https://events.ccc.de/en/2026/07/02/were-moving/
1•Tomte•3m ago•0 comments

Show HN: Redis City – Explore how Redis works in an interactive 3D model

https://poltora.dev/redis
1•poltora•5m ago•1 comments

Can large language models understand hum4n L4ngu4ge and the W0rld behind W0rds?

https://royalsocietypublishing.org/rsta/article/384/2320/20250008/481681/A-sentence-is-worth-a-th...
1•Anon84•8m ago•0 comments

Show HN: SimTower, Decompiled, Rewritten, and in the Browser

https://kvetch.io/conciliatower/
1•jonahss•8m ago•1 comments

Anthropic CEO calls on AI companies to slow down development

https://www.euronews.com/my-europe/2026/09/12/anthropic-ceo-dario-amodei-calls-on-ai-companies-to...
2•throwawayffffas•10m ago•0 comments

Show HN: Come prove the Berge Fulkerson conjecture with a swarm of agents

https://provetogether.ai/problems/15
2•fcesco•10m ago•0 comments

Show HN: StateHunter and AuditGuard – Client-Side SPA Recon and Safe Harbor CLI

https://codeandcypher.com/posts/client-side-spa-recon-and-safe-harbor-verification/
1•hlldvr•12m ago•0 comments

LG Says We're Fake News [video]

https://www.youtube.com/watch?v=ToP9xfLDSME
4•HelloUsername•13m ago•0 comments

In the Age of AI, TODOs Considered Harmful

https://frequal.com/java/TodosConsideredHarmful.html
1•TeaVMFan•15m ago•2 comments

OpenAI won't go public this year

https://fortune.com/2026/09/12/sam-altman-openai-ipo-delay-ill-advised-moment-safety-concerns/
5•spidersouris•15m ago•1 comments

On teaching mathematics (2007) [pdf]

https://www-sop.inria.fr/members/Ian.Jermyn/philosophy/writings/Arnoldonmaths.pdf
1•exposition•16m ago•0 comments

Tesla Roadster to be unveiled on Oct first

https://www.tesla.com/roadster
2•simonebrunozzi•19m ago•0 comments

The first-ever naval battle between unmanned boats

https://twitter.com/GirkinGirkin/status/2098799352328183918
2•newsuser•20m ago•0 comments

SEC Proposes Regulation Crypto Assets

https://www.dlapiper.com/en-us/insights/publications/2026/09/sec-proposes-regulation-crypto-assets
1•thedragongc•20m ago•0 comments

Jimmy Kimmel Interviews James Talarico

https://www.youtube.com/watch?v=WLDE9LrGpNk
5•Betelbuddy•20m ago•0 comments

Review of Current Search

https://port19.xyz/tech/search-2026/
1•speckx•21m ago•0 comments

OpenCode Go cuts off usage in VSCode with one days notice

https://github.com/microsoft/vscode/issues/334186
1•literallyroy•23m ago•0 comments

role-model is a protocol for assigning the right model for the right job

https://github.com/try-works/role-model
1•Bluestein•30m ago•0 comments

Developing provably correct Rust code with Verus

https://www.amazon.science/blog/developing-provably-correct-rust-code-with-verus
1•matt_d•30m ago•0 comments

Catholic tech leaders urge ethical boundaries for AI

https://www.ewtnnews.com/world/us/catholic-tech-leaders-urge-ethical-boundaries-for-ai
2•journey2s•31m ago•0 comments

Pihole and IPv6

https://unorde.red/pihole/
1•speckx•31m ago•1 comments

World of Warcraft: Forever

http://worldofwarcraft.blizzard.com/en-us/forever
3•minimaxir•32m ago•0 comments

Xiaomi Book Pro 14 2026, Intel X7 358H and B390 – Linux Driver Fixes

https://grigio.org/xiaomi-book-pro-14-2026-intel-x7-358h-b390-linux-driver-fixes/
1•grigio•33m ago•0 comments

Revolut handed over personal details to fake government request

https://www.cryptotimes.io/2026/09/12/revolut-handed-over-bitcoin-histories-passports-on-spoofed-...
2•defied•33m ago•0 comments