I see that Function-based Configuration pattern is used in Codemirror. I am more curious about the discipline from which the author took/adopted this pattern rather than the advantages/disadvantages of this pattern. I know that this pattern is used extensively in Golang. It is a situation that we do not come across much in the Javascript world. Thank you very much.