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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Tensor 1.5 is out and it's matching Claude 4.5 Opus

https://movementlabs.ai
1•movementlabs-AI•1m ago•1 comments

Gh PR-review: LLM-friendly PR review workflows in your CLI

https://agyn.io/blog/gh-pr-review-cli-agent-workflows
1•handfuloflight•7m ago•0 comments

What is digital sovereignty and how are countries approaching it?

https://www.weforum.org/stories/2025/01/europe-digital-sovereignty/
1•andsoitis•10m ago•0 comments

Spain probes whether swine fever outbreak was caused by lab leak

https://www.reuters.com/business/healthcare-pharmaceuticals/spain-investigating-whether-swine-fev...
1•geox•10m ago•0 comments

Git Worktree Manager: Worktrunk

https://worktrunk.dev/
2•maximilianroos•18m ago•0 comments

Show HN: Art-2D – A physics-based model for financial collapse prediction

https://zenodo.org/records/17805937
2•asmyros•18m ago•0 comments

Dinit – service manager and "init" system

https://davmac.org/projects/dinit/
1•doener•20m ago•0 comments

Show HN: Vibe Code WP Plugins

https://steem.dev/
1•fasthightimess•20m ago•0 comments

When is Gods Timing

https://thinke.org/blog/gods-timing-is-always-right-on-time
2•marysminefnuf•21m ago•0 comments

Chimera Linux

https://chimera-linux.org/
2•doener•22m ago•0 comments

Imperial 'Good Companion' Model T typewriter manual (1938) [pdf]

https://www.londontypewriters.co.uk/wp-content/uploads/2022/01/London-Typewriters-Imperial-Good-C...
1•camtarn•22m ago•0 comments

Bag of words, have mercy on us

https://www.experimental-history.com/p/bag-of-words-have-mercy-on-us
2•ntnbr•22m ago•0 comments

"SFH: A Minimal Semantic Layer for the Web (One File, Zero Dependencies)"

https://github.com/colts70/The-Sematic-Stack
1•sematicstackdfh•23m ago•1 comments

Does Pittsburgh Have More Bridges Than Any Other City?

https://www.pittsburghmagazine.com/does-pittsburgh-really-have-more-bridges-than-any-other-city/
2•eatonphil•24m ago•1 comments

Water leak in the Louvre damages works, museum says

https://www.theguardian.com/world/2025/dec/07/water-leak-in-the-louvre-damages-hundreds-of-works-...
1•ljf•26m ago•0 comments

Handmade Manifesto

https://handmade.network/manifesto
3•kristianp•27m ago•0 comments

University of Utah team discovers rare computer relic

https://www.youtube.com/watch?v=IR-f07LN0-Y
2•emigre•27m ago•1 comments

Terminal Click – Bringing Dead Text to Life

https://terminal.click/
1•kristianp•30m ago•0 comments

I block all online ads

https://troubled.engineer/posts/no-ads/
6•StrLght•34m ago•0 comments

Istanbul Tragedy: The Poison That Mimics Food Poisoning

https://www.medscape.com/viewarticle/istanbul-tragedy-poison-mimics-food-poisoning-2025a1000xms
2•wjb3•35m ago•0 comments

Two thousand years of garden urbanism in the Upper Amazon

https://www.science.org/doi/10.1126/science.adi6317
2•tesserato•36m ago•0 comments

Bermuda Triangle swallowed our reason -Conspiracy culture was born in its depths

https://unherd.com/2025/12/the-bermuda-triangle-swallowed-our-reason/
2•pseudolus•37m ago•1 comments

Mitch Albom's notes from a book tour: America still turning its pages

https://www.freep.com/story/sports/columnists/mitch-albom/2025/12/07/mitch-albom-notes-book-tour-...
2•rmason•39m ago•1 comments

The Medical Case for Self-Driving Cars

https://www.nytimes.com/2025/12/02/opinion/self-driving-cars.html
1•bookofjoe•40m ago•3 comments

The New Cigarette

https://www.whitenoise.email/p/the-new-cigarette
1•twhite214•43m ago•0 comments

AI Output Format Catalog – 116 standardized tags for predictable LLM responses

https://github.com/Kapodeistria/ai-output-format-catalog
3•kapodeistria•43m ago•1 comments

FBI Paid $851K in Overtime for Epstein 'Transparency Project' Redactions

https://www.bloomberg.com/news/newsletters/2025-11-25/epstein-files-new-fbi-emails-detail-review-...
2•Jimmc414•44m ago•2 comments

AI 'Genesis Mission'

https://www.nature.com/articles/d41586-025-03890-z
1•wjb3•46m ago•0 comments

Prevalence of Internet gaming disorder in young adults

https://www.sciencedirect.com/science/article/pii/S0306460325003454?
1•wjb3•53m ago•0 comments

Greece is teaching Germany how to get government online

https://www.economist.com/europe/2025/12/04/greece-is-teaching-germany-how-to-get-government-online
1•toomuchtodo•54m ago•1 comments