coconut
« Back to VersTracker
Description:
Simple, elegant, Pythonic functional programming
Type: Formula  |  Latest Version: 3.1.2@1  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  @coconutlang  |  formulae.brew.sh
Category: Developer tools
Tags: functional-programming python compiler language pattern-matching
Install: brew install coconut
About:
Coconut is a functional programming language that compiles to Python. It enhances Python with powerful features like pattern matching, algebraic data types, and full immutability support. This allows developers to write more expressive, concise, and reliable code while leveraging the entire Python ecosystem.
Key Features:
  • Pattern matching and destructuring
  • Algebraic data types and immutability
  • Haskell-style function composition
  • Seamless Python interoperability
  • Tail call optimization
Use Cases:
  • Data processing pipelines requiring complex pattern matching
  • Writing more robust and maintainable Python applications
  • Functional programming education within Python ecosystem
  • Concurrent and parallel programming tasks
Alternatives:
  • Python – Coconut is a strict superset of Python, adding functional programming features while maintaining full compatibility
  • Haskell – Haskell is a pure functional language with stricter type systems, while Coconut provides FP features in a familiar Python environment
License: Apache-2.0
Dependencies: python@3.13
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Nov 4, 2025 9:54am 1 VERSION_BUMP 227f5b51
Oct 10, 2024 8:41am 0 VERSION_BUMP 3023b23b