Comments (4)
I agree; the hand crafted parser isn't very maintainable. One of the advantages of using a standard format like JSON or YAML is one could leverage off-the-shelf libraries like Jackson and/or Snakeyaml. Of course, that would add a dependency. As always, there are trade-offs to consider...
from config.
The entire idea behind Config was to use only JDK – otherwise we'd used Scala for it. So it needs to be 0 deps.
from config.
fwiw, I don't think we'd ever make back the time spent converting to a parser generator. There have been very few bugs reported in the parser and back compat concerns mean the format won't change much.
I personally find a recursive parser like the current code pretty straightforward (and it's also how some JSON libs I've seen are written), but I understand tastes differ on that.
If doing something like this, a concern of mine would be to retain at-least-as-good error messages.
The whole emphasis here (and why we don't just use JSON) is to put more work on us maintaining this config library, in order to put less work on people writing config files. So we don't want to have less maintenance work here if there's a cost in work for people using the library.
The maintenance work right now is essentially zero anyhow - there are hardly any commits, and the bugs are (as far as I remember) "this would be a nice enhancement" kind of things, not "it's broken" kind of things. But if there are some "it's broken" I'm ignoring please let me know ;-)
It's hard to do too much "would be nice" without broadening scope, adding complexity, adding code size, but I expect we'll do a few things here and there.
Some performance work might be nice, but then I'm not sure loading config files tends to be on the critical path.
from config.
just a reminder : you promised to do pull 32 after v 1 release :-)
from config.
Related Issues (20)
- Find a StackOverflowError in config
- Find a StackOverflowError in config
- Find a StackOverflowError in config HOT 1
- underscore characters HOT 2
- Problems with com.typesafe/config and maven-dependency-plugin
- introduce method accepting a list of Objects to add a value
- Should this project be explicitly considered as deprecated/not supported? HOT 29
- Community fork? HOT 7
- Resolving Variable Substitutions Between Multiple Config HOT 1
- Something error when use com.typesafe.config API convert conf file to scala bean class
- withFallBack is not adding value if not present
- how to load the config with substitution details HOT 3
- Add info about which signing keys will be used for published artifacts.
- Cannot provide environment variables programmatically
- Rendering partially resolved appended array results in invalid configuration HOT 1
- Inconsistent behavior with Overflow/Underflow and Exceptions
- Regression in environment variable reading behavior HOT 2
- Add a module info HOT 6
- Question about `ConfigFactory.systemProperties()` on windows HOT 1
- When rendering unresolved ConfigConcatenation, whitespaces are erroneously included
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from config.