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

Yeast β-glucan supplementation supports immunometabolic anti-tumor responses

https://www.cell.com/cell-reports/fulltext/S2211-1247(26)00726-6
1•OutOfHere•3m ago•1 comments

The software buyout wave is upon us

https://www.semafor.com/article/08/20/2026/the-software-buyout-wave-is-upon-us
1•RickJWagner•3m ago•0 comments

Oral therapy protected mice from lethal radiation while sparing cancer treatment

https://medicalxpress.com/news/2026-08-oral-therapy-mice-lethal-cancer.html
1•mdp2021•3m ago•0 comments

Show HN: Locum – Grok Bot delegates tasks to Claude/Codex CLI on your machine

https://github.com/HarjjotSinghh/locum
1•harjjotsinghh•4m ago•0 comments

The Wright Brothers Didn't Learn by Crashing

https://julienreszka.com/blog/the-wright-brothers-didn-t-learn-by-crashing/
1•julienreszka•4m ago•0 comments

Show HN: Rmd – lightweight reminder daemon and CLI for Linux

https://github.com/PaulBunch/rmd
1•PaulBunch•9m ago•0 comments

Portland area leaders are dismantling a third of the homeless shelter system

https://www.oregonlive.com/politics/2026/08/portland-area-leaders-are-dismantling-a-third-of-the-...
2•petethomas•10m ago•0 comments

Show HN: Cloudflare Workers boilerplate for your bidding site

https://outbid-directory.lol/outbid-boilerplate
2•buildItN0w_•11m ago•1 comments

Ingo Swann

https://en.wikipedia.org/wiki/Ingo_Swann
1•softwaredoug•12m ago•0 comments

AutoBio – Biographical Pages

https://autobio.halilibrahimoezcan.com
1•OezMaster•12m ago•0 comments

The most important European act

https://0xksure.medium.com/the-most-important-european-act-f6f298ed693a
1•kristohb•13m ago•1 comments

The Developer's Identity Crisis: Europe's Compliant Wave

https://medium.com/@MirArshadTalpur/the-developers-identity-crisis-europe-s-compliant-wave-1de6b1...
1•Arshad-Talpur•14m ago•1 comments

Show HN: Built a CLI to find and disable telemetry for package.json dependencies

https://github.com/apvarun/no-telemetry
1•apvarun•17m ago•0 comments

GDOS64

https://bitbucket.org/mkgit64/area6510/src/master/releases/geos-gdos64/
1•erickhill•18m ago•0 comments

Dry Danube River threatens nuclear power in Romania, Hungary

https://www.dw.com/en/dry-danube-river-threatens-nuclear-power-in-romania-hungary/a-78223402
2•gmays•19m ago•1 comments

NASA-led study shows some earth microbes could survive on the Moon

https://www.msn.com/en-us/science/microbiology/nasa-led-study-shows-some-earth-microbes-could-sur...
3•anigbrowl•19m ago•0 comments

Knowing When to Stop: The Art of Making a Loop Converge

https://a16z.com/knowing-when-to-stop-the-art-of-making-a-loop-converge/
4•gmays•24m ago•0 comments

Intuitionistic LMs with Composition as a Language Modeling Primitive

https://openreview.net/challenge?redirect=%2Fforum%3Fid%3DSt7tE87RL3
1•rtuyeras•27m ago•0 comments

Show HN: A tool that intentionally makes you forget your Screen Time passcode

https://waittounlock.com/
2•shorekey•28m ago•0 comments

The Law of Fairness Formal Model [pdf]

https://github.com/LifeisFair/law-of-fairness-research/blob/main/The%20Law%20of%20Fairness%20Form...
1•wertyk•28m ago•0 comments

Rescuers use new tech to save caver trapped vertically in Albertas Psych Squeeze [video]

https://www.youtube.com/watch?v=DrsuT64SFB4
1•austinallegro•33m ago•0 comments

Nearly 25% of U.S. workers are functionally unemployed, economic analysis finds

https://www.cbsnews.com/news/functional-unemployment-us-labor-market-analysis/
5•makaimc•33m ago•2 comments

U.S. tried to restrict Canada's ability to get new trade deals

https://www.cbc.ca/news/world/livestory/us-canada-trade-war-new-tariffs-9.7310605?id=9.7310605.15367
6•martythemaniak•34m ago•0 comments

Why the Market Can't Escape Artificial Intelligence

https://www.youtube.com/watch?v=wTiYaWFP59Q
1•root-parent•35m ago•0 comments

Imbalances Facing the U.S. Economy

https://www.everycrsreport.com/reports/IN12732.html
1•DeepLogin•36m ago•0 comments

Grok Bot and Grok Build Will Make the App and the Operating System Irrelevant

https://twitter.com/BrianRoemmele/status/2091198738580869595
1•bilsbie•37m ago•1 comments

Before We Join the Fight, What the Hell Is a Data Center?

https://jeffreylminch.substack.com/p/before-we-join-the-fight-what-the
1•rmason•37m ago•0 comments

Hackers infect Android car head units with proxy botnet malware

https://www.bleepingcomputer.com/news/security/hackers-infect-android-car-head-units-with-proxy-b...
2•sbulaev•39m ago•0 comments

The Fight to Save a 300-Year-Old Tree That Survived a Revolutionary War Battle

https://www.smithsonianmag.com/smart-news/inside-fight-to-save-300-year-old-tree-that-survived-re...
3•rmason•39m ago•0 comments

A Guide for the Hereditarian Revolution

https://ncofnas.com/p/a-guide-for-the-hereditarian-revolution
2•doener•39m ago•0 comments