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

Disney making $1B investment in OpenAI, will allow characters on Sora AI

https://www.cnbc.com/2025/12/11/disney-openai-sora-characters-video.html
1•tiahura•1m ago•0 comments

Beginner friendly cyber security challenges

https://knox.sethmb.xyz
1•isaluki•2m ago•1 comments

Directory of Padel Apps: with features, estimates and KPIs

https://padel.productcrafters.io
1•oleg2014•2m ago•0 comments

Sid Meier: More Than Just Civilization

https://boilingsteam.com/sid-meier-more-than-just-civilization/
1•ekianjo•4m ago•0 comments

NATO's Rutte warns against a war on the scale of that seen by past generations

https://www.reuters.com/business/aerospace-defense/natos-rutte-warns-allies-they-are-russias-next...
1•vincent_s•4m ago•0 comments

You aren't gonna need it

https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it
1•nomilk•5m ago•0 comments

Turn any Android app into an API

https://revrse.ai/
1•arsrev•7m ago•0 comments

Skydiver suspended below aircraft after accidental reserve chute deployment

https://www.atsb.gov.au/media/news-items/2025/skydiver-suspended-below-jump-aircrafts-tailplane-a...
1•tailspin2019•7m ago•1 comments

AI optimism is a class privilege

https://joshcollinsworth.com/blog/sloptimism
1•todsacerdoti•8m ago•0 comments

The Walt Disney Company and OpenAI Partner on Sora

https://openai.com/index/disney-sora-agreement/
2•inesranzo•8m ago•0 comments

Ten key insights from development economics in 2025

https://voxdev.org/topic/ten-key-insights-development-economics-2025
1•alphabetatango•9m ago•0 comments

Quantum clues to consciousness: the brain may harness the zero-point field

https://phys.org/news/2025-12-quantum-clues-consciousness-brain-harness.html
2•stOneskull•12m ago•0 comments

The Architects of AI Are TIME's 2025 Person of the Year

https://time.com/7339685/person-of-the-year-2025-ai-architects/
1•lode•12m ago•0 comments

Blue Origin's Orbital Data Centers Signal a New Era of Power, Politics, and Risk

https://comuniq.xyz/post?t=602
1•01-_-•12m ago•0 comments

Why are my view transitions blinking?

https://piccalil.li/blog/why-are-my-view-transitions-blinking/
1•bk496•15m ago•0 comments

Linux Foundation Announces the Formation of the Agentic AI Foundation

https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-...
1•svoit•15m ago•0 comments

A customizable agentic AI toolkit for e-commerce

https://upsidelab.io/tools/enthusiast
1•vast-alive•16m ago•0 comments

What happens when you add a new Teller?

https://www.johndcook.com/blog/2008/10/21/what-happens-when-you-add-a-new-teller/
1•bschne•16m ago•0 comments

I built a browser tool that converts ANY file → Markdown

https://www.loom.com/share/d854af039e364fb28ca006d4654257ca
1•gavrielamati•18m ago•0 comments

Is GitHub Down?

5•henriquenunez•19m ago•2 comments

Twin suction turbines and 3-Gs in slow corners? Meet the DRG-Lola

https://arstechnica.com/cars/2025/11/an-electric-car-thats-faster-than-f1-around-monaco-thats-the...
1•PaulHoule•19m ago•0 comments

Two Elegant Use Cases for Go Build Tags

https://btema.net/blog/two-elegant-use-cases-for-go-build-tags/
2•machine424•19m ago•0 comments

TikTok will let users share feeds in DMs

https://mashable.com/article/tiktok-users-feed-share-direct-message
1•geox•19m ago•0 comments

I miss the old Qasar, not the new Qasar

https://qy.co/writings/newqasar/
1•jger15•20m ago•0 comments

I Built a Rolling Collector to Grab X Threads for AI

https://joeldare.com/how-i-built-a-rolling-collector-to-grab-x-threads-for-ai
1•codazoda•21m ago•0 comments

The Abundance Paradox: Why Netflix's Acquisition Makes Sense in the Era of AI

https://twitter.com/Konstantine/status/1998512521385488841
2•jger15•24m ago•0 comments

China's ZTE may pay over $1B to the US over foreign bribery allegations

https://www.reuters.com/sustainability/society-equity/chinas-zte-may-pay-more-than-1-billion-us-o...
4•TechTechTech•25m ago•1 comments

Google Stitch

https://stitch.withgoogle.com/
1•karma_daemon•25m ago•0 comments

AI Predictions for 2026: A DevOps Engineer's Guide

https://www.pulumi.com/blog/ai-predictions-2026-devops-guide/
1•p4ul•26m ago•0 comments

Mrva: Terminal-first approach to CodeQL multi-repo variant analysis

https://blog.trailofbits.com/2025/12/11/introducing-mrva-a-terminal-first-approach-to-codeql-mult...
1•ingve•27m ago•0 comments