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

Family trivia game to entertain bored kids

https://tsachev.us/games/
1•ventsi-tb•7m ago•1 comments

Automated Engineering: What Happens Beyond the Plan?

https://blog.fruhinsholz.com/articles/automated-engineering-beyond-the-plan/
2•fruhinsholz•11m ago•0 comments

Canada's Supreme Court Upholds Quebec's Religious-Symbols Ban

https://www.wsj.com/world/americas/canadas-supreme-court-upholds-quebecs-religious-symbols-ban-c1...
3•JumpCrisscross•15m ago•0 comments

David Fincher Says A.I. Isn't "Hurting Cinema," Defends Its Use in 'Cliff Booth'

https://theplaylist.net/david-fincher-cliff-booth-ai-hurting-cinema-controversy-20261128/
1•Michelangelo11•17m ago•0 comments

Show HN: A daily game where four LLMs try to predict your answer

https://enduser.fun/
3•retrolover83•17m ago•0 comments

PocketBase has moved off GitHub

https://github.com/pocketbase/pocketbase/issues/7872
1•p2detar•19m ago•0 comments

Age is supposed to change your value

https://artoftraction.com/articles/age-is-supposed-to-change-your-value
2•sinac•19m ago•0 comments

Why the super rich are inevitable

https://pudding.cool/2022/12/yard-sale/
2•chistev•26m ago•0 comments

Trump says SEC's Atkins will make the use of the term 'SI' mandatory

https://thehill.com/homenews/administration/6246273-trump-sec-mandates-si-term/
6•everybodyknows•28m ago•4 comments

Patiele: A Practical Case of Infrastructure

https://patiele.io/en/inside-patiele/radical-infrastructure/
1•AmaEme•31m ago•0 comments

Musk Wants AI in Space. It's About Money, Not Mars

https://www.youtube.com/watch?v=yGuj9rIUfWI
3•frag•37m ago•1 comments

Every Marketing Manager Will Need to Become a Product Marketing Manager

https://www.kevinkatzke.com/blog/every-marketing-manager-will-become-a-product-marketing-manager/
2•kevinkatzke•37m ago•1 comments

Show HN: Dash, a desktop canvas where coding agents work beside your running app

https://dashcanvas.dev/
2•pbroas127•38m ago•0 comments

Banks are not profitable anymore (Failed and Seized)

https://www.seattletimes.com/business/united-fidelity-bank-seized-in-biggest-us-bank-failure-sinc...
5•trilogic•39m ago•2 comments

Public benchmarks and OpenSSL-verifiable post-quantum timestamps

https://github.com/SINECLAVE/sineclave-public/blob/main/docs/STRESS_TESTS.md
1•ifazlic•40m ago•0 comments

Natural England objects to datacentre Weeks later govt threaten to abolish it

https://www.theguardian.com/environment/2026/nov/27/natural-england-objected-datacentre-ministers...
1•nephihaha•41m ago•1 comments

Show HN: Venndetta, daily Venn diagram puzzles about real-world data

https://trost.co/venndetta/
12•matthewtoast•44m ago•6 comments

A grammatical view of logic programming [pdf]

https://www.researchgate.net/profile/Pierre-Deransart/publication/221266845_A_grammatical_view_of...
3•fanf2•49m ago•0 comments

The importance of understanding what the fuck is going on

https://blog.jsbarretto.com/post/understanding
3•notfried•49m ago•0 comments

OpenAI countersues Apple for stealing trade secrets

https://www.ft.com/content/af599e07-d44c-4068-ab84-6ee3c85551d4
2•droidjj•51m ago•1 comments

Iran used Elon Musk's Starlink to help wage attacks against U.S.

https://www.washingtonpost.com/national-security/2026/11/28/iran-used-elon-musks-starlink-interne...
8•cwwc•59m ago•3 comments

What Is 'Roughness', Really?

https://gpfault.net/posts/roughness.html
2•nice_byte•1h ago•0 comments

Show HN: Get lost with friends in an infinite 3D Library of Babel

https://github.com/skorotkiewicz/library-of-babel
2•modinfo•1h ago•0 comments

Canada Supreme Court Upholds Act Respecting the Laicity of the State in Quebec

https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/21777/index.do
3•matbilodeau•1h ago•1 comments

Runescape Security Incident: November 28 Downtime

https://secure.runescape.com/m=news/november-28-downtime
9•usernomdeguerre•1h ago•2 comments

Vectorized SVE2 Optimization of the Post-Quantum Signature ML-DSA on ARMv9-A

https://dl.acm.org/doi/10.1145/3839362
1•rbanffy•1h ago•0 comments

Show HN: Daily open job postings for 925 US stocks, from their own career sites

https://glitchbound-jobs.pages.dev/hiring-trends/
3•glitchbound•1h ago•0 comments

Los Angeles schools block Google's AI features, consider dropping products

https://www.pbs.org/newshour/education/as-google-threatens-to-cut-schools-search-access-los-angel...
2•geox•1h ago•0 comments

Ask HN: Anyone else in the UK get cyber attacked today?

1•definitelynotad•1h ago•0 comments

Show HN: Preflight CLI – a localscanner for AI coding agent skills

https://deepwissen.com/articles/why-i-built-preflight/
2•deepwissen•1h ago•0 comments