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

The secretive powerbroker with a tight grip on corporate Spain

https://www.ft.com/content/708bbf41-a174-4c04-b96d-c6cfeca2a805
1•petethomas•3m ago•0 comments

Timelang: Natural Language Time Parser

https://timelang.dev/
1•kamranahmedse•7m ago•1 comments

Young Men Are Lost. A New Book Can Guide the Way

https://www.bloomberg.com/news/articles/2026-01-12/day-trader-memoir-generation-desperation-a-fra...
2•petethomas•9m ago•0 comments

Trump Touts New Microsoft Data-Center Pledges After Local Backlash

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-01-12-2026/card/trump-touts...
1•nycdatasci•10m ago•0 comments

Show HN: ProofLoop – Autonomous long-running agents with verifiable completion

https://github.com/exiw-ai/proofloop
1•egordev•14m ago•0 comments

Show HN: I made a $25 lifetime Screen Studio alternative

https://debut.sh/
1•ben_hrris•18m ago•0 comments

Are Atomic Operations Better Than a Mutex? It Depends

https://madflojo.dev/posts/are-atomic-operations-faster-than-a-mutex/
1•madflojo•20m ago•0 comments

They Write the Right Stuff

https://www.fastcompany.com/28121/they-write-right-stuff
1•robbs•24m ago•1 comments

A rare interview with the elusive Agatha Christie

https://www.bbc.com/culture/article/20260109-a-rare-interview-with-the-elusive-agatha-christie
1•1659447091•25m ago•0 comments

Be Wary of Digital Deskilling

https://calnewport.com/be-wary-of-digital-deskilling/
2•monobot12•25m ago•0 comments

Show HN: Yoth-yoth – your all-in-one workspace

https://yoth-yoth.com/hello
2•volokh•31m ago•0 comments

Data is not available upon request

https://osf.io/preprints/psyarxiv/jbu9r_v3
2•sien•33m ago•0 comments

I Graduated from Survival Mode

https://www.fieldnotes.nautilus.quest/p/i-graduated-from-survival-mode
1•zeldapoem•33m ago•0 comments

The Pentagon used a secret aircraft painted to look like a civilian plane

https://www.nytimes.com/2026/01/12/us/politics/us-boat-attacks-law.html
2•perihelions•35m ago•2 comments

Verizon to stop automatic unlocking of phones as FCC ends 60-day unlock rule

https://arstechnica.com/tech-policy/2026/01/fcc-lets-verizon-lock-phones-for-longer-making-it-har...
3•DefineOutside•41m ago•0 comments

A 'Holy Grail' Sleep Apnea Pill Could Be on the Market Next Year

https://www.forbes.com/sites/amyfeldman/2026/01/12/a-holy-grail-sleep-apnea-pill-could-be-on-the-...
2•cebert•41m ago•2 comments

Great code doesn't matter if you can't sell it

https://platformtoolsmith.com/blog/senior-engineer-part-3/
2•sharp-dev•41m ago•1 comments

FCC revises Verizon phone unlocking rules after significant fraud issues

https://www.reuters.com/business/media-telecom/fcc-revises-verizon-phone-unlocking-rules-after-si...
2•petethomas•41m ago•0 comments

Canada's Scaling Problem Isn't Compute, It's Coastlines

https://zeitgeistml.substack.com/p/canadas-scaling-problem-isnt-compute
2•sjosh003•42m ago•0 comments

Show HN: Minimal type-safe language for software architecture

https://github.com/tesserato/Tect
2•tesserato•42m ago•0 comments

Bug 55867 – Doesn't know how to tag XI_TRACKBALL

https://bugs.freedesktop.org/show_bug.cgi?__goaway_challenge=meta-refresh&__goaway_id=bdd4239d39d...
1•rballpug•47m ago•3 comments

From Starbase: Pete Hegseth on Defense Innovation Reform [video]

https://www.youtube.com/watch?v=MlRm9tCT0Ug
1•0xWTF•50m ago•1 comments

Meta shakes up its review system with 'stronger rewards for top performers'

https://www.businessinsider.com/meta-performance-review-system-stronger-rewards-top-performers-20...
2•ryandrake•56m ago•0 comments

Paramount Wants Warner to Show Its Work

https://www.bloomberg.com/opinion/newsletters/2026-01-12/paramount-wants-to-warner-to-show-its-work
1•feross•57m ago•0 comments

Turning Agents into Learning Machines

https://twitter.com/ashpreetbedi/status/2010781132418064750
1•bedify•59m ago•0 comments

DJT Says Microsoft to Make Changes to Curb Data Center Power Costs for Americans

https://money.usnews.com/investing/news/articles/2026-01-12/trump-says-microsoft-to-make-changes-...
1•schmuckonwheels•1h ago•1 comments

Living with LLMs Everywhere – How Ambient LLMs Negate Security Policy

1•djwide•1h ago•0 comments

Who Companies Call When They Want to Become a Bank

https://www.bloomberg.com/news/articles/2026-01-12/fintechs-call-klaros-group-when-they-want-bank...
1•petethomas•1h ago•0 comments

Apple: You (Still) Don't Understand the Vision Pro

https://stratechery.com/2026/apple-you-still-dont-understand-the-vision-pro/
2•feross•1h ago•1 comments

Show HN: Idlen.io ($IDL), the first privacy-first AI ad network is launched

https://www.idlen.io/fr/
4•paulefizelier•1h ago•1 comments