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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Lisa

https://github.com/blencorp/lisa
1•handfuloflight•1m ago•0 comments

Show HN: I built OnePlayer: A lightweight, Material 3 offline player

https://play.google.com/store/apps/details?id=com.googol.android.apps.oneplayer&hl=en_US
1•iZakirSheikh•1m ago•0 comments

Show HN: Call Your Loved Ones

https://cylo.mkaye.dev/
1•mrkaye97•2m ago•0 comments

Promise Theory

https://en.wikipedia.org/wiki/Promise_theory
1•dvrp•3m ago•0 comments

Starting tomorrow those on public assistance can't wire money out of the country

https://twitter.com/DavidAsmanfox/status/2009421583312396367
1•delichon•3m ago•0 comments

Show HN: Owl – Golang NVR with GB28181/Onvif Support and YOLO Detection

1•ixugo•5m ago•0 comments

AI images and internet rumors spread confusion about agent involved in shooting

https://www.npr.org/2026/01/08/nx-s1-5671740/ice-minneapolis-grok-ai-renee-nicole-good
1•rolph•5m ago•0 comments

Industrialising Code as we know it

https://medium.com/@igorcosta/industrialising-code-as-we-know-it-7d7000aa4b6d
1•igorpcosta•7m ago•1 comments

Repeating fast radio burst shows diverse activity and hints at magnetar origin

https://phys.org/news/2026-01-fast-radio-diverse-hints-magnetar.html
1•wglb•8m ago•1 comments

Why Are Grok and X Still Available in App Stores?

https://daringfireball.net/linked/2026/01/08/grok-x-app-stores
2•chmaynard•10m ago•0 comments

Jupiter's moon Europa lacks undersea activity needed to support life

https://phys.org/news/2026-01-jupiter-moon-europa-lacks-undersea.html
1•wglb•10m ago•1 comments

Videos Contradict Trump Administration Account of ICE Shooting in Minneapolis

https://www.nytimes.com/video/us/100000010631041/minneapolis-ice-shooting-video.html
3•shepherdjerred•12m ago•1 comments

Nanoplastics have diet-dependent impacts on digestive system health

https://phys.org/news/2025-12-nanoplastics-diet-impacts-digestive-health.html
1•PaulHoule•14m ago•1 comments

Why does mint make water taste so cold?

https://theconversation.com/why-does-mint-make-water-taste-so-cold-a-scientist-explains-267550
1•wjb3•15m ago•0 comments

Ruby 4.0 released – but its best new features are not production ready

https://devclass.com/2026/01/06/ruby-4-0-released-but-its-best-new-features-are-not-production-re...
3•thunderbong•18m ago•0 comments

Giant phantom jellyfish spotted deep in Pacific

https://www.popsci.com/environment/giant-phantom-jellyfish-spotted-deep-in-pacific/
2•wjb3•19m ago•0 comments

A.I. Slop Will Crescendo into a Cultural Shift [video]

https://www.youtube.com/watch?v=QyIlxg3z2eQ
1•mooreds•22m ago•0 comments

MiniMax jumps 54% in Hong Kong debut after US$619M IPO

https://www.businesstimes.com.sg/startups-tech/startups/minimax-jumps-54-hong-kong-debut-after-us...
1•dworks•22m ago•0 comments

The week where time stops making sense

https://afterburnout.co/p/the-week-where-time-stops-making-sense
1•mooreds•23m ago•0 comments

The Relation Between Mathematics and Physics – Paul Dirac(1939)

https://www.damtp.cam.ac.uk/events/strings02/dirac/speach.html
1•nill0•23m ago•0 comments

Render AI Revit: AI Rendering for Revit Workflows

https://vocus.cc/article/695f61eafd89780001924d64
1•architech_willy•25m ago•0 comments

This guy raised $40k riding Uber

https://substack.com/inbox/post/183505174
1•haddadda•26m ago•0 comments

The Isolator

https://en.wikipedia.org/wiki/The_Isolator_(helmet)
1•mojoe•26m ago•1 comments

Wilsonic: Open-Source Musical Scale Explorer

https://www.wilsonic.co
2•gyomu•27m ago•0 comments

Account Linking

https://ciamweekly.substack.com/p/account-linking
1•mooreds•28m ago•0 comments

Show HN: Claude Code for Django

https://github.com/kjnez/claude-code-django
1•cui•32m ago•0 comments

Misadventures in Dtrace with macOS

https://jade.fyi/blog/misadventures-in-dtrace/
1•vsgherzi•33m ago•0 comments

I tried to be the government. It did not go well

https://www.theatlantic.com/magazine/2026/02/individual-federal-services-replacement/685333/
1•m-hodges•37m ago•0 comments

Show HN: Executable Markdown files with Unix pipes

4•jedwhite•40m ago•0 comments

Benchmark: Replacing Vector RAG with Context Trees to Fix Gemini Hallucinations

https://www.byterover.dev/blog/why-vector-rag-fails-for-code-we-tested-it-on-1-300-files
1•lanchiii•41m ago•1 comments