Kotlin / Kotlin/dataframe

ParserOptions DSL

Open
#1,802 0 comments 0 reactions 0 assignees View on GitHub
API
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

Something like:
```kt
parserOptions {
locale = Locale.GERMAN
dateTime = kotlin {
formats += LocalDateTime.Formats.ISO
formats += pattern("hh:mm")
}
}
```

may be more Kotlinlike than
```kt
ParserOptions(
locale = Locale.GERMAN,
dateTime = DateTimeParserOptions.Kotlin
.withFormat(LocalDateTime.Formats.ISO)
.withPattern("hh:mm"),
)
```

Follow up for https://github.com/Kotlin/dataframe/pull/1777

Contributor guide

Open the contributing guide

Research direction

Compare the proposed parserOptions DSL with the existing ParserOptions and DateTimeParserOptions APIs, using the examples in the issue as the intended shape. Review the follow-up context in pull request #1777, then define the DSL behavior and confirm that the shown Kotlin examples work as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.