Giter Site home page Giter Site logo

log4dotty's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

log4dotty's Issues

question about by name passing vs macros in logger implementation

Hi,

I read your blog post
https://heikoseeberger.rocks/2019/06/19/2019-06-19-dotty-1/

I'm trying to contribute some code to the scala-logging
lightbend-labs/scala-logging#212
but encountered many issues arising from the usage of macros, and i was wondering why use macros here at all, instead of by-name parameter passing, as you explore in this repo.

i'm assuming the cause is due to callsite information being lost if you can't inline (via macros in scala2 or inline via new features in scala3),
but apparently, for example in logback, this can be configured in the pattern layout encoder (as i mention in my PR), so not sure if this is a big deal?

I'm asking because i'm thinking of creating a new logger library,
with a scala 2 version that works via by-name parameter passing, and possibly a scala 3 compatible version that may or may not use inline features.

Would appreciate your feedback,
Thanks!
Nathan Grunzweig

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.