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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Nobel laureate László Krasznahorkai delivers rare lecture in Stockholm

https://www.latimes.com/entertainment-arts/story/2025-12-07/nobel-literature-laureate-laszlo-kras...
1•wslh•2m ago•0 comments

Death Valley plant yields blueprint for building heat-resilient crops

https://phys.org/news/2025-11-death-valley-yields-blueprint-resilient.html
1•PaulHoule•3m ago•0 comments

Meet the Islands Theme – The New Default Look for JetBrains IDEs

https://blog.jetbrains.com/platform/2025/12/meet-the-islands-theme-the-new-default-look-for-jetbr...
1•ancarda•3m ago•0 comments

AI Browsers Aren't Smart Enough yet to Take over the Internet

https://www.bloomberg.com/news/features/2025-12-08/what-is-agentic-browsing-and-why-are-ai-browse...
1•thm•4m ago•0 comments

Martin Kleppmann Prediction: AI will make formal verification go mainstream

https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html
1•thomasweiser•5m ago•0 comments

Going Loopy

https://xania.org/202512/08-going-loopy
1•ibobev•5m ago•0 comments

Predicate Decomposition

https://buttondown.com/jaffray/archive/predicate-decomposition/
1•ibobev•5m ago•0 comments

Show HN: I built a climbing tracker for data-obsessed climbers (Expo/RN)

https://goclimbr.com/share
1•codesink•6m ago•0 comments

ZX Spectrum Next on the Internet: Xberry Pi ESP01 and Pi Zero Upgrades

https://retrogamecoders.com/zx-spectrum-next-on-the-internet-xberry-pi-esp01-and-pi-zero-upgrades/
1•ibobev•7m ago•0 comments

Show HN: VirtualDNS – a programmable internal DNS for private environments

1•virtualdns•8m ago•0 comments

Building a Modern C64 Assembly AI Toolchain

https://medium.com/@gianlucabailo/building-a-modern-c64-assembly-ai-toolchain-using-google-gemini...
1•094459•10m ago•1 comments

US startup seeks to reclaim Twitter trademarks 'abandoned' by Musk's X

https://www.reuters.com/technology/us-startup-seeks-reclaim-twitter-trademarks-abandoned-by-musks...
1•tmvnty•14m ago•0 comments

Polymarket: Mechanics of Trading Probability

https://codepointer.substack.com/p/polymarket-buying-no-selling-yes
1•ykhl1itj•16m ago•0 comments

macOS was fun: John Siracusa's OS X Reviews (2015)

https://hypercritical.co/2015/04/15/os-x-reviewed
1•watersb•16m ago•1 comments

AIxCC Curl Details

https://daniel.haxx.se/blog/2025/10/22/aixcc-curl-details/
2•robin_reala•21m ago•0 comments

Fossils, genomes clash as scientists debate the mosquito's origins

https://www.thehindu.com/sci-tech/science/fossils-genomes-clash-as-scientists-debate-the-mosquito...
1•ashishgupta2209•22m ago•0 comments

Kafkorama Benchmark: 1M msgs/s to 1M users on Confluent with 5ms median latency

https://kafkorama.com/blog/benchmarking-kafkorama-confluent.html
1•michelrotaru•22m ago•0 comments

All the buildings available as 3D models

https://www.tum.de/en/news-and-events/all-news/press-releases/details/all-the-worlds-buildings-av...
1•taubek•23m ago•0 comments

AI Assist is now available on Stack Overflow

https://meta.stackexchange.com/questions/415115/ai-assist-is-now-available-on-stack-overflow
2•atomicnature•25m ago•0 comments

Morphisms All the Way Down: API Design as Arrow-First Thinking

https://ibrahimcesar.cloud/blog/categorical-solutions-architect-part-2/
1•ibrahimcesar•26m ago•0 comments

Publishing a Java-Based Database Tool on Mac App Store (Mas)

https://tanin.nanakorn.com/publishing-a-java-based-database-tool-on-mac-app-store-mas/
1•pjmlp•28m ago•0 comments

Show HN: Paaage – Minimalist, drag-and-drop homepage builder

https://paaage.app
1•PatriceC•29m ago•0 comments

News gets reshaped to match the way your brain works

https://www.niemanlab.org/2025/12/news-gets-reshaped-to-match-the-way-your-brain-works/
1•giuliomagnifico•33m ago•0 comments

Are most sentences unique? An empirical examination of Chomskyan claims

https://arxiv.org/abs/2509.19108
1•bryanrasmussen•34m ago•0 comments

Does YC support startups paying the 100K$ H1B fee to import talents?

2•blobembassay•36m ago•1 comments

Linux Kernel Version Numbers

http://www.kroah.com/log/blog/2025/12/09/linux-kernel-version-numbers/
1•JNRowe•39m ago•0 comments

Cashfree Payments Powers High-Scale, Speed-First Support

https://tech.cashfree.com/4-ways-cashfree-payments-powers-high-scale-speed-first-support-d93ac85e...
1•manishajayson•39m ago•0 comments

Why are there so many react developers?

2•blobembassay•40m ago•1 comments

Google Maps allocates survival across London's restaurants

https://laurenleek.substack.com/p/how-google-maps-quietly-allocates
2•justincormack•40m ago•0 comments

I'm Not AI, I'm Just Autistic

https://www.latoyarachelle.com/im-not-ai-im-just-autistic/
3•sodic•41m ago•0 comments