Git Product home page Git Product logo

gossamer's People

Contributors

propensive avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gossamer's Issues

Gossamer `t` string interpolator doesn't seem work

import nettlesome.*
import gossamer.*
import contingency.*
import errorHandlers.throwUnsafely

println("hello")
println(t"[email protected]")
//println(EmailAddress.parse(t"[email protected]"))

Scala version being used is 3.5.0-RC1

1) Scastie

On scastie, it doesn't produce any output
https://scastie.scala-lang.org/bRgE1hMhTsysAgTxj8A0vA

2) local sbt project

On local sbt project, it produces this error:

[error] -- Error: /Users/propensive/work/gossamer/src/core/t.scala:29:57 ---------------
[error] undefined: gossamer.Interpolation.T.expand # -1: TermRef(TermRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class <root>)),object gossamer),Interpolation),object T),expand) at typer

Provide a `t""` pattern extractor

Currently, Text values must be converted to Strings and matched against String patterns. Instead, it should be possible to match on them directly against patterns of the form, t"foo".

Improve decimal formatting

The current implementation is simplistic, and reuses Java's DecimalFormat (which it probably doesn't need to).

Provide better `Text` sorting with Java's collators

Currently, sorting is done using the default Ordering[String] instance. But it should be locale-dependent, and the locale should be made explicit.

For example, for French, we currently need to write something like:

val collator = Collator.getInstance(Locale.FRANCE)
given Ordering[String] = collator.compare(_, _)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.