Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
graywolf
graywolf
@graywolf@fosstodon.org  ·  activity timestamp 2 days ago

Now it is time for #srfi37 . I wrote implementation for my #guile library to provide getopt_long compatible parsing[0]. Pretty much drop-in replacement, and you get a familiar behavior you know from the GNU C library.

Additionally, I ported my #guix tree to it. I can now write

guix shell --expose ~/dir

and it works. I am using it for few months and seems to work just fine. Feel free to grab the patch[1] and install it to your trees.

0: https://git.wolfsden.cz/guile-wolfsden/tree/wolfsden/srfi/srfi-37.scm

1: https://git.wolfsden.cz/guix/commit/?id=44abab7e5e179f755f5edc9ac862e4ff60fadb2e

  • Copy link
  • Flag this post
  • Block
Giacomo Leidi
Giacomo Leidi
@paulbutgold@mastodon.bida.im replied  ·  activity timestamp 2 days ago

@graywolf cool stuff, any chance to get this in mainline guile?

  • Copy link
  • Flag this comment
  • Block
graywolf
graywolf
@graywolf@fosstodon.org replied  ·  activity timestamp 2 days ago

@paulbutgold I have no immediate plans to upstream this, no. While it is pretty much drop-in replacement API-wise (after you toggle few switches), it changes the parsing behavior (on purpose, in IMO for the better). So it would be a compatibility break, so I doubt it would be accepted.

I will probably try to upstream it for guile 4.0.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct