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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Show HN: Alt – A local AI lecture/meeting notetaker

https://www.altalt.io/en
1•predict-woo•3m ago•0 comments

Show HN: SceenYou.art-Your Personal AI Visual Studio

https://sceneyou.art/
1•zy5a59•3m ago•0 comments

Neuracore raises $3M to power next-gen robots and open robotics research

https://earlybird.com/perspectives/backing-neuracore-reinventing-data-infrastructure-for-robotics
1•felixneuraco•3m ago•0 comments

Equal things that don't look equal

https://www.johndcook.com/blog/2025/11/27/hyperbolic-metric-formulas/
1•ibobev•3m ago•0 comments

Launch: Rivellium – AI-powered multi-asset investing with real SMB cashflow

1•rivellium•4m ago•1 comments

Four-inch worm hatches in woman's forehead, wriggles to her eyelid

https://arstechnica.com/health/2025/11/doctors-pull-4-inch-worm-out-of-womans-eyelid-after-monthl...
1•Bender•4m ago•0 comments

AI Just Took My Product Photographer's Job

https://theautomatedoperator.substack.com/p/ai-just-took-my-product-photographers
1•idopmstuff•9m ago•0 comments

Haskell Jupyter kernels (IHaskell, xeus-Haskell) comparison

https://www.datahaskell.org/blog/2025/11/25/a-tale-of-two-kernels.html
1•yehoshuapw•12m ago•0 comments

Constraint-Engineered Development

https://rootcx.com/blog/constraint-engineered-development
1•seyz•15m ago•0 comments

Article on Medium

https://medium.com/@benoitlebison/what-would-a-world-with-legal-therapeutic-psilocybin-look-like-...
1•magictruffle•16m ago•0 comments

Crypto investors face tax crackdown as 70% non-compliant

https://www.thepost.co.nz/business/360897298/crypto-investors-face-tax-crackdown-70-non-compliant
8•gochuks•16m ago•1 comments

OpenAI confirms major breach, exposing user's names, email addresses, and more

https://www.windowscentral.com/artificial-intelligence/openai-chatgpt/openai-confirms-major-data-...
2•choult•17m ago•0 comments

Show HN: Omnom v0.8.0 with Fediverse feed integration

https://github.com/asciimoo/omnom/releases/tag/v0.8.0
4•asciimoo•20m ago•0 comments

A terminal emulator that runs in your terminal. Powered by Turbo Vision

https://github.com/magiblot/tvterm
1•mariuz•22m ago•0 comments

Got burned by an Apple ICLR paper – it was withdrawn after my Public Comment

https://twitter.com/diyerxx/status/1994042370376032701
3•diyer22•23m ago•2 comments

Boarding School Syndrome

https://www.theguardian.com/books/2015/jun/08/boarding-school-syndrome-joy-schaverien-review
2•niemandhier•23m ago•1 comments

Free Flux 2 to Try

https://flux-2-ai.com
1•jeyzolo•23m ago•1 comments

Ask HN: Do AI replies with numerous em dashes save money somehow?

2•amichail•25m ago•1 comments

What Great Means to Us

https://twinlabs.notion.site/great
1•bkolobara•27m ago•0 comments

European parliament calls for social media ban on under-16s

https://www.theguardian.com/technology/2025/nov/26/social-media-ban-under-16s-european-parliament...
4•2OEH8eoCRo0•31m ago•2 comments

MCPs for Developers Who Think They Don't Need MCPs

https://block.github.io/goose/blog/2025/11/26/mcp-for-devs/
1•gmays•33m ago•0 comments

Germany's pension reform becomes a generational conflict

https://www.lemonde.fr/en/international/article/2025/11/27/germany-s-pension-reform-becomes-a-gen...
2•throw0101c•35m ago•1 comments

Devconnect 2025 Recap: What You Might Have Missed in Buenos Aires

https://thomasbenoitbenoitonchain.substack.com/p/devconnect-2025-recap-what-you-might
2•benoitonchainyc•35m ago•1 comments

China's Alibaba brings removable batteries to the smart glasses race

https://www.theverge.com/news/831354/alibaba-quark-smart-glasses
2•mgh2•37m ago•0 comments

Rare microbial relict sheds light on an ancient eukaryotic supergroup

https://www.nature.com/articles/s41586-025-09750-0
1•nhatcher•38m ago•1 comments

Alibaba starts selling Quark AI glasses in China, enters global wearables race

https://www.reuters.com/world/china/alibaba-starts-selling-quark-ai-glasses-china-enters-global-w...
2•mgh2•38m ago•0 comments

Scientists may have detected dark matter

https://phys.org/news/2025-11-years-scientists-dark.html
2•erikrozendaal•40m ago•0 comments

Evaluating Uniform Memory Access Mode on AMD's Turin Ft. Verda

https://chipsandcheese.com/p/evaluating-uniform-memory-access
1•rbanffy•40m ago•0 comments

BBC tells staff they cannot quote Trump line removed from Reith Lecture

https://www.theguardian.com/media/2025/nov/27/bbc-donald-trump-corruption-line-removed-from-rutge...
10•INGELRII•41m ago•1 comments

DeepMind "The Thinking Game" now free on YouTube [video]

https://www.youtube.com/watch?v=d95J8yzvjbQ
2•HarHarVeryFunny•42m ago•1 comments