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

When Technology Crosses the Threshold Between Memory and Simulation

https://comuniq.xyz/post?t=542
1•01-_-•45s ago•0 comments

Nomor Telepon Halo-BCA (62 817.395.377)

1•Akirus•1m ago•0 comments

TeamViewer is experiencing issues – Management Console (MCO) not loading

https://status.teamviewer.com
1•taubek•2m ago•1 comments

Contact Halo BCA Finansial 0817.395.377

1•ferhatcelik•6m ago•5 comments

I'm about to buy a $150 Apple trackpad for my Windows PC, please stop me

https://www.howtogeek.com/please-someone-stop-me-before-i-buy-this-150-trackpad/
1•dsego•6m ago•0 comments

Klik BCA Bisnis Hubungi Halo BCA 0817395377

1•ferhatcelik•7m ago•0 comments

Bagaimana Hubungi Halo BCA?

1•ferhatcelik•8m ago•0 comments

As Lovable hits $200M ARR, its CEO credits staying in Europe for its success

https://techcrunch.com/2025/11/19/as-lovable-hits-200m-arr-its-ceo-credits-staying-in-europe-for-...
1•iamtech•8m ago•0 comments

AI Super Prompts

https://superprompts.dev/
1•klipitkas•9m ago•1 comments

Show HN: Low-Cost FPGA-Based Bit Error Rate Tester and Eye Diagram Analyzer

https://github.com/mmrdni/MBERT
1•aaaawwww•10m ago•0 comments

Deploying your own Cloudflare-style error page in your website

https://github.com/donlon/cloudflare-error-page
2•Donlon•10m ago•0 comments

Personal Security Checklist

https://digital-defense.io/
2•elashri•15m ago•0 comments

Money talks: the deep ties between Twitter and Saudi Arabia

https://www.theguardian.com/technology/2025/oct/09/twitter-saudi-arabia-deep-ties-elon-musk-princ...
1•INGELRII•17m ago•0 comments

Back to Basics: Let Denoising Generative Models Denoise

https://arxiv.org/abs/2511.13720
1•GaggiX•20m ago•0 comments

Show HN: Free Calculator for Outbound Sales Profitability

https://dealmayker.com/free-tools/free-outbound-sales-roi-calculator
1•aleksam•22m ago•0 comments

Comet for Android Is Out

https://play.google.com/store/apps/details?id=ai.perplexity.comet&hl=en
1•AHASIC•22m ago•1 comments

Michael Burry takes aim at Nvidia after its earnings blowout

https://www.businessinsider.com/big-short-michael-burry-nvidia-stock-earnings-ai-bubble-microchip...
2•MindBreaker2605•31m ago•0 comments

Quantum Tech That Helps Anyone Build a Smarter Stock Portfolio

https://soma.biz
2•Hellene•32m ago•0 comments

The most traveled Prime Minister

https://rodgercuddington.substack.com/p/britains-most-traveled-prime-minister
1•freespirt•33m ago•1 comments

The per-request isolation architecture of TinyKVM

https://fwsgonzo.medium.com/per-request-isolation-in-tinykvm-explained-080e84328ba4
1•fwsgonzo•34m ago•0 comments

Tracking domestication signals across populations of North American raccoons

https://frontiersinzoology.biomedcentral.com/articles/10.1186/s12983-025-00583-1
2•Kaibeezy•36m ago•0 comments

Superman Comic Found in Attic Sold for $9.12M

https://www.ha.com/c/press-release.zx?releaseId=5346&hero-pr-comicArt-results-superman-learnMore-...
1•HelloUsername•37m ago•0 comments

Stubborn Slider, Proactive Toggle and Naughty Button

https://chillcomponent.codlin.me/en/components/slider-stubborn/
1•xeonax•38m ago•1 comments

Show HN: Free Ask AI Agent for tech products and dev docs

https://www.ordemio.com/ask-ai
1•0_AkAsH_03•42m ago•0 comments

YouTube Speed Memory: never reset playback speed again

https://chromewebstore.google.com/detail/youtube-speed-memory-–-ch/okblccdiofablichebdkjmfagmaj...
1•Homos•56m ago•1 comments

Nvidia negative after Ray Dalio warns wealth gap poised for political explosion

https://fortune.com/2025/11/20/nvidia-turns-negative-ray-dalio-ai-bubble-wealth-gaps/
1•zerosizedweasle•57m ago•0 comments

The Fall of Ancient Civilisations: 20: Achaemenid Persian Empire

https://fallofcivilizationspodcast.com/2025/11/12/%E2%9B%B0%25EF%25B8%258F%F0%9F%8F%94%25EF%25B8%...
1•zeristor•57m ago•1 comments

Show HN: SolidJS node-based editor library

https://github.com/ryusufe/solid-kitx
1•ryusufe•58m ago•0 comments

Building with NanoBanana Pro and ended up replacing my whole image pipeline

https://nan0banana.com/en
1•kelly99•59m ago•2 comments

Intercept iPhone Traffic for Mobile Applications That Bypass Proxy Settings

https://abdullahdiaa.com/blog/intercepting-iphone-traffic-with-mitmproxy/
1•abdullahdiaa•1h ago•1 comments