Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ic-n/flow-control

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ic-n/flow-control

  • v0.0.0-20231013182218-eb697e067ac0
  • Source
  • Go
  • Socket score

Version published
Created
Source

Flow - A Chaining Mechanism for Go

Flow is an experiment to check if go generics give more room for code obfuscation and a known problem from other languages - toxic senior++ code, only readable by experts with proper context, overcomplicated to be scary for newcomers. The answer is undoubtedly yes; it gives developers a chance to write such sophisticated constructs, so it's terrifing but remail "legal" code. Anyway, I am still determining if it's necessary to be so minimalistic to disallow doing bad things.

Also, see my old Python experiment on the same topic: https://github.com/machineandme/sneact (it was a joke). TLDR; Python with HTML embeddings. That is a pure Python React-JSX-like library that tests the limits of syntax parser of Python interpreter by "operator overloading".

Flow is a simple and lightweight Go package that provides a chaining mechanism for functions (Functors) that operate on values and errors. It allows you to create chains of functions and apply them to a value, making it easy to implement flexible error handling and value transformation pipelines.

Features

  • Create chains of functions that process values and errors sequentially.
  • Conditionally apply functions based on the presence or absence of errors.
  • Define default values or actions to handle errors in a customizable way.
  • Easily combine and extend chains of functions.

FAQs

Package last updated on 13 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc